// 二级路由
import {
  employmentRouter,
  IntelligentRouter,
  SecurityRouter,
  keepaliveRouter,
  operationRouter,
  FormRouter,
  TabulationRouter
} from './three'

// 首页
export const FirstRouter = {
  path: '/first',
  name: 'first',
  component: () => import('@/views/first/index.vue'),
  meta: {
    icon: 'House',
    title: '首页'
  }
}
// 大屏管理二级页
export const managethree = [employmentRouter, IntelligentRouter, SecurityRouter, operationRouter]
//大屏管理
export const ManageRouter = {
  path: '/manage',
  name: 'manage',
  component: () => import('@/views/manage/index.vue'),
  meta: {
    icon: 'SwitchFilled',
    title: '大屏管理'
  },
  children: managethree
}
//知识点二级页
export const Know_children = [keepaliveRouter]
//知识点
export const KnowledgeRouter = {
  path: '/knowledge',
  name: 'knowledge',
  component: () => import('@/views/knowledge/index.vue'),
  meta: {
    icon: 'User',
    title: '知识点'
  },
  children: Know_children
}

// 页面管理二级页
export const Form_children = [FormRouter, TabulationRouter]
//页面管理
export const PageRouter = {
  path: '/page',
  name: 'page',
  component: () => import('@/views/page/index.vue'),
  meta: {
    icon: 'Checked',
    title: '页面管理'
  },
  children: Form_children
}

//图形图表
export const GraphRouter = {
  path: '/graph',
  name: 'graph',
  component: () => import('@/views/page/index.vue'),
  meta: {
    icon: 'Histogram',
    title: '图形图表'
  }
}

//功能
export const FeatureRouter = {
  path: '/feature',
  name: 'feature',
  component: () => import('@/views/feature/index.vue'),
  meta: {
    icon: 'HelpFilled',
    title: '功能'
  }
}

//自定义
export const CustomRouter = {
  path: '/custom',
  name: 'custom',
  component: () => import('@/views/custom/index.vue'),
  meta: {
    icon: 'Grid',
    title: '自定义指令'
  }
}

// 图形编辑器
export const GraphicRouter = {
  path: '/graphic',
  name: 'graphic',
  component: () => import('@/views/graphic/index.vue'),
  meta: {
    icon: 'BrushFilled',
    title: '图形编辑器'
  }
}
//视频播放器
export const VideoRouter = {
  path: '/video',
  name: 'video',
  component: () => import('@/views/video/index.vue'),
  meta: {
    icon: 'VideoCameraFilled',
    title: '视频播放器'
  }
}

//数据统计
export const StatisticsRouter = {
  path: '/statistics',
  name: 'statistics',
  component: () => import('@/views/statistics/index.vue'),
  meta: {
    icon: 'TrendCharts',
    title: '数据统计'
  }
}

//个人中心
export const IndividualRouter = {
  path: '/Individual',
  name: 'Individual',
  component: () => import('@/views/Individual/index.vue'),
  meta: {
    icon: 'Avatar',
    title: '个人中心'
  }
}
